<?php
define('ENCRYPTION_KEY', 'netputweets'); // Cookie encryption key. Max 52 characters

define('OAUTH_CONSUMER_KEY', 'awGBKfiSSqf1B2iKGsmJQ'); // OAuth consumer and secret keys. Available from http://twitter.com/oauth_clients

define('OAUTH_CONSUMER_SECRET', 'hym4qJF1F6nyjISzRUCFBU4OQSIr5mrk7074vId3K8');

define('BITLY_LOGIN', 'netputer'); // bit.ly login and API key for URL shortening
define('BITLY_API_KEY', 'R_bd1cb944bb3a85a75e94d18354464d46');

define('MOBYPICTURE_API_KEY', 'sVigidmn1IcZmY4r'); // Optional API keys for retrieving thumbnails
define('FLICKR_API_KEY', 'dfca5cc61714ee31e38ee412086a0f87');

define('LANG', 'zh_CN');

define('WEB_ROOT', '');

define ('FORCE_SECURE', 1); // force use https

if(FORCE_SECURE==1 && $_SERVER['HTTPS']!="on") {
    $redirect= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    header("Location:$redirect");
}

$base_url = (($_SERVER['HTTPS']!="on")?'http://':'https://').$_SERVER['HTTP_HOST'];
if ($directory = trim(dirname($_SERVER['SCRIPT_NAME']), '/\,')) {
  $base_url .= '/'.$directory;
}
define('BASE_URF', $base_url.'/');
define('BASE_URL', BASE_URF/* . 'index.php?q='*/);

define('NETPUTWEETS_TITLE', '奶瓶腿');
define('NETPUTWEETS_API', 'http://twitter.com/');
define('NETPUTWEETS_APIS', 'http://search.twitter.com/');

define('OAUTH_URL', 'https://twitter.com/oauth/');
define('ITAP_URL', 'https://twitter.com/oauth/');

define('LONG_URL', 0);  
// 是否开启还原短链接功能? 0为不开启, 1为开启. 默认开启.
define('REG', 0);       
//是否开启注册新帐号功能? 0为不开启, 1为开启. 默认开启.
define('INVITE', 1);    
//是否开启"仅受邀用户可登录"的功能? 0为不开启, 1为开启. 默认不开启.
define('INVITE_PASSWORD', 'netputweets'); 
?>
